<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../baselist.jsp"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
</head>

<body>
<form name="icform" method="post">

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
  <div id="navMenubar">
<ul>
<li id="view"><a href="#" onclick="formSubmit('${pageContext.request.contextPath}/factoryviews.action','_self');this.blur();">查看</a></li>
<li id="update1"><a href="#" onclick="formSubmit('${pageContext.request.contextPath}/goinsertContractc.action','_self');this.blur();">新增</a></li>
<li id="update"><a href="#" onclick="formSubmit('${pageContext.request.contextPath}/goupdateContractc.action','_self');this.blur();">修改</a></li>
<li id="delete"><a href="#" onclick="formSubmit('${pageContext.request.contextPath}/deleteContract.action','_self');this.blur();">删除</a></li>
	<li id="delete"><a href="#" onclick="formSubmit('${ctx}/uploadAndremoveContract.action?choose=0','_self');this.blur();">上报</a></li>
	<li id="delete"><a href="#" onclick="formSubmit('${ctx}/uploadAndremoveContract.action?choose=1','_self');this.blur();">取消</a></li>

	<li id="view3"><a href="#" onclick="formSubmit('${ctx}/openuse.action','_self');this.blur();">打印</a></li>
	<li id="view4"><a href="#" onclick="formSubmit('${ctx}/excel.action','_self');this.blur();">模板打印</a></li>
<li id="stop"><a href="#" onclick="formSubmit('${ctx}/closeuse.action','_self');this.blur();">归档</a></li>
</ul>
  </div>
</div>
</div>
</div>
<div class="textbox" id="centerTextbox">
  <div class="textbox-header">
  <div class="textbox-inner-header">
  <div class="textbox-title">
    生产厂家列表
  </div> 
  </div>
  </div>
  
<div>

<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<thead>
	<tr>
		<td class="tableHeader"><input type="checkbox" name="contractId" onclick="checkAll('id',this)"></td>
		<td class="tableHeader">序号</td>
		<td class="tableHeader">客户名称</td>
		<td class="tableHeader">合同号</td>
		<td class="tableHeader">货物数/附件数</td>
		<td class="tableHeader">签单日期</td>
		<td class="tableHeader">制单人</td>
		<td class="tableHeader">审单人</td>
		<td class="tableHeader">验货员</td>



		<td class="tableHeader">船期</td>

		<td class="tableHeader">交货期限</td>
		<td class="tableHeader">说明</td>
		<td class="tableHeader">打印版式</td>
		<td class="tableHeader">总金额</td>
		<td class="tableHeader">状态</td>
		<td class="tableHeader">操作</td>
	</tr>
	</thead>
	<tbody class="tableBody" >
	
	<c:forEach items="${dataList}" var="o" varStatus="status">
	<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
		<td><input type="checkbox" name="contractId" value="${o.contractId}"/></td>
		<td>${status.index+1}</td>
		<td><a href="${pageContext.request.contextPath}/factoryviews.action?factoryId=${o.contractId}">${o.customName}</a></td>
		<td>${o.contractNo}</td>
		<td>${o.cargo_number}/${o.accessory_number}</td>
		<td><fmt:formatDate value="${o.signingDate}" pattern="yyyy-MM-dd"/></td>
		<td>${o.inputBy}</td>
		<td>${o.checkBy}</td>
		<td>${o.inspector}</td>


		<td><fmt:formatDate value="${o.shipTime}" pattern="yyyy-MM-dd"/></td>

		<td><fmt:formatDate value="${o.deliveryPeriod}" pattern="yyyy-MM-dd"/></td>
		<td>${o.remark}</td>
		<td>
			<c:if test="${o.printStyle==1}"><font color="green">窄</font></a></c:if>
			<c:if test="${o.printStyle==2}"><font color="#a9a9a9">宽</font></a></c:if>
		</td>
		<td>${o.total}</td>
		<td>
			<c:if test="${o.state==0}"><font color="green">草稿</font></c:if>
			<c:if test="${o.state==2}"><font color="#a9a9a9">待报运</font></c:if>
			<c:if test="${o.state==1}"><font color="#6495ed">已上报 </font></c:if>
		</td>
		<td><a href="${ctx}/selectPC.action?contractId=${o.contractId}">[货物]</a></td>
	</tr>
	</c:forEach>
	
	</tbody>
</table>
</div>
 
</div>
 
</div>
</form>
</body>
</html>

